<?php
chDir( "../" );

//  --  CLASS IMPORT  --  //
require_once( "useClasses.php5" );
import( 'de.ceus-media.ui.html.ServiceIndex' );
import( 'de.ceus-media.ui.DevOutput' );
import( 'classes.Services' );
import( 'classes.services.PublicServices' );

//  --  CONFIGURATION  --  //
$fileName	= "services/public.yaml";
$template	= "services/template.phpt";
$formats	= array(
	'xml',
	'rss',
	'atom',
	'wddx',
	'json',
	'php',
	'txt'
	);

//  --  SERVICE HANDLING  --  //
$services	= new Services( $fileName );
$index		= new ServiceIndex( $services, $formats, $template );
$index->setTableClass( 'services list' );
$index->handle( $_GET ); 
?>